package com.hankol.newretail.adapter

import android.widget.ImageView
import com.baselibrary.extension.checkValue
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.hankol.newretail.R
import com.hankol.newretail.bean.CancelReasonListBean

/*取消订单 原因 列表*/
class CancelOrderReasonAdapter : BaseQuickAdapter<CancelReasonListBean, BaseViewHolder>(R.layout.item_cancel_order_reason) {

    override fun convert(helper: BaseViewHolder, item: CancelReasonListBean) {
        helper.apply {
            item.let {
                getView<ImageView>(R.id.img_select).isSelected = item.isSelect
                setText(R.id.tv_reason, it.desc.checkValue())
            }
        }
    }
}